package me.send.produce.client.controller;

import java.util.Map;

import me.send.business.service.service.OrdertypeService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping(value = "ordertype", method = RequestMethod.POST)
public class OrdertypeController {

	@Autowired
	private OrdertypeService ordertypeService;

	@RequestMapping("list")
	@ResponseBody
	public Map<String, Object> list(String devicenumber) {
		return ordertypeService.list(devicenumber);
	}
}
